<?php
/* @var $this DemandeController */
/* @var $model Demande */
Yii::app()->clientScript->registerScript('create', "
var nowTemp = new Date();		
var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);		
$('#Demande_date_souhait').datepicker({
	format:'yyyy-mm-dd',
	language:'fr',
	weekStart:'1',
	autoclose:'true',
	forceParse:false,
	startDate:new Date()
});
$('#Demande_date_expiration').datepicker({
	format:'yyyy-mm-dd',
	language:'fr',
	weekStart:'1',
	autoclose:'true',
	forceParse:false,
	startDate:new Date()
});
");
?>

<h1>Faire une demande</h1>

<?php $this->renderPartial('_form', array('model'=>$model)); ?>
